package com.aspose.cells;

class zccg extends zcdb {
   zccg() {
      this.d = 479;
   }

   void a(PageSetup var1) throws Exception {
      String var2 = var1.a(true, 2);
      String var3 = var1.a(false, 2);
      String var4 = var1.a(true, 0);
      String var5 = var1.a(false, 0);
      String var6 = var1.a(true, 1);
      String var7 = var1.a(false, 1);
      int var8 = 26 + 2 * var2.length() + 2 * var3.length() + 2 * var4.length() + 2 * var5.length() + 2 * var6.length() + 2 * var7.length();
      this.c = new byte[var8];
      byte var9 = 0;
      if (var2.length() > 0 || var3.length() > 0 || var4.length() > 0 || var5.length() > 0 || var6.length() > 0 || var7.length() > 0) {
         if (var1.isHFDiffOddEven()) {
            var9 = (byte)(var9 | 1);
         }

         if (var1.isHFDiffFirst()) {
            var9 = (byte)(var9 | 2);
         }

         if (var1.isHFScaleWithDoc()) {
            var9 = (byte)(var9 | 4);
         }

         if (var1.isHFAlignMargins()) {
            var9 = (byte)(var9 | 8);
         }

         this.c[0] = var9;
         byte var10 = 2;
         byte[] var11 = new byte[]{-1, -1, -1, -1};
         int var12;
         if (var6.length() > 0) {
            var12 = zcch.a(this.c, var10, var6);
         } else {
            System.arraycopy(var11, 0, this.c, var10, 4);
            var12 = var10 + 4;
         }

         if (var7.length() > 0) {
            var12 = zcch.a(this.c, var12, var7);
         } else {
            System.arraycopy(var11, 0, this.c, var12, 4);
            var12 += 4;
         }

         if (var4.length() > 0) {
            var12 = zcch.a(this.c, var12, var4);
         } else {
            System.arraycopy(var11, 0, this.c, var12, 4);
            var12 += 4;
         }

         if (var5.length() > 0) {
            var12 = zcch.a(this.c, var12, var5);
         } else {
            System.arraycopy(var11, 0, this.c, var12, 4);
            var12 += 4;
         }

         if (var2.length() > 0) {
            var12 = zcch.a(this.c, var12, var2);
         } else {
            System.arraycopy(var11, 0, this.c, var12, 4);
            var12 += 4;
         }

         if (var3.length() > 0) {
            zcch.a(this.c, var12, var3);
         } else {
            System.arraycopy(var11, 0, this.c, var12, 4);
            var12 += 4;
         }
      }

   }
}
